import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

Widget getNavItem(
    {required String title, required String img, bool isNet = false,Function? callback}) {
  return Expanded(
    child: InkWell(
      onTap: (){
        if(callback != null){
          callback();
        }
      },
      child: Column(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          isNet
              ? Image.network(
                  img,
                  height: 15,
                  width: 16,
                )
              : Image.asset(
                  img,
                  height: 15,
                  width: 16,
                ),
          Text(title),
        ],
      ),
    ),
  );
}
